@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Onest:wght@300;500&display=swap');

:root {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

html {
    font-size: 16px;
    font-family: "Amatic SC", sans-serif;
    font-weight: 400;
    color: #fff;
}

body, html {
    margin: 0;
}

body {
    width: 100%;
    height: 100dvh;
    background: linear-gradient(135deg, #7c1599 0%,#921099 48%,#7e4ae8 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.player {
    background-color: #000;
    min-width: 750px;
    position: relative;
    overflow: hidden;
}

.player:fullscreen,
.player:-webkit-full-screen {
    max-width: none;
    width: 100%;
}

.player__video {
    width: 100%;
}

.player__controls {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    position: absolute;
    bottom: 0;
    transform: translate(-5px, 100%);
    transition: all .3s;
    justify-content: space-between;
}

.player:hover .player__controls {
    transform: translateY(0);
}

.player__controls > * {
    flex: 1 1;
}

.player__controls .progress {
    flex: 1 1 100%;
    height: 1rem;
    transition: height 0.3s;
    background: rgba(0,0,0,0.5);
    cursor: ew-resize;
    display: flex;
}

.progress__filled {
    width: 50%;
    height: 1rem;
    background: #ffc600;
    flex: 0;
    flex-basis: 0%;
    transition: flex-basis .2s;
}  

.player__button {
    background: transparent;
    border: 0;
    line-height: 1;
    color: white;
    text-align: center;
    outline: 0;
    padding: 0;
    cursor: pointer;
    max-width: 75px;
    min-width: 36px;
    font-size: 1.25rem;
    padding: .5rem;
    transition: box-shadow .3s;
}

.player__button.skip-time {
    width: 75px;
}

.player__button.toogle {
    max-width: 50px;
}

.player__slider {
    background: transparent;
    margin: 0 .5rem;
    appearance: none;
    -webkit-appearance: none;
}

.player__slider:focus {
    outline: none;
}

.player__slider::-webkit-slider-runnable-track {
    width: 100%;
    height: .5rem;
    cursor: pointer;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0);
    background: rgba(255,255,255,0.8);
    border-radius: 1rem;
    border: 0.2px solid rgba(1, 1, 1, 0);
}

.player__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(13, 13, 13, 0);
    background-color: #ffc600;
    height: 1rem;
    width: 1rem;
    border-radius: 50%;
    margin-top: -0.3rem;
    cursor: pointer;
}

.player__slider::-moz-range-track {
    width: 100%;
    height: .5rem;
    cursor: pointer;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0);
    background: #ffffff;
    border-radius: 1.3px;
    border: 0.2px solid rgba(1, 1, 1, 0);
}

.player__slider::-moz-range-thumb {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(13, 13, 13, 0);
    height: 1rem;
    width: 1rem;
    border-radius: 50%;
    background: #ffc600;
    cursor: pointer;
}

.player__button:focus,
.player__button:hover {
    box-shadow: inset 1px 1px #ffc600, inset -1px -1px #ffc600;
}

.toast-slider {
    max-width: 36px;
    position: relative;
}

.toast-slider .player__slider {
    writing-mode: vertical-lr;
    direction: rtl;
    vertical-align: middle;
}

.slider-background {
    opacity: 0;
    z-index: -1;
    padding: .5rem;
    transition: opacity .3s;
    bottom: 0rem;
    position: absolute;
    transform: translate(-5px, 150px);
    transition: opacity .3s, transform .3s;
}

.player:hover .toast-slider:hover .slider-background,
.toast-slider .slider-background:hover {
    opacity: 1;
    z-index: 10;
    bottom: 0;
    background: rgba(0, 0, 0, .8);
    transform: translate(-5px, -40px);
}

.toast-slider button > img{
    filter: invert(100%) sepia(55%) saturate(3895%) hue-rotate(184deg) brightness(135%) contrast(104%);
    width: 20px;
    display: block;
    margin-top: .3rem;
}

.add-controllers {
    display: flex;
    flex: 0 0;
}

.splash-layer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.splash-layer .status {
    width: 25px;
    height: 25px;
    margin: 0 auto;
    display: none;
    opacity: 0;
    transition: opacity 1s linear .2s;
    position: relative;
    top: 50%;
}

.splash-layer .status.active {
    display: block;
    opacity: 1;
}

.splash-layer .status > i {
    font-size: 25px;
}